package com.uranus.common.VO;

import com.uranus.common.constant.enums.LanguageEnum;

/**
 * Single case
 */
public class ServiceContext {
    private static ServiceContext ourInstance = new ServiceContext();

    public static ServiceContext getInstance() {
        return ourInstance;
    }
    private ServiceContext() {
    }
    private TokenUserInfo tokenUser;
    private LanguageEnum languageEnum;

    public TokenUserInfo getTokenUser() {
        return tokenUser;
    }
    public void setTokenUser(TokenUserInfo tokenUser) {
        this.tokenUser = tokenUser;
    }

    public LanguageEnum getLanguageEnum() {
        return languageEnum;
    }
    public void setLanguageEnum(LanguageEnum languageEnum) {
        this.languageEnum = languageEnum;
    }


    public  Integer getUserId(){
        return this.tokenUser.getUserId();
    }
    public  Integer getRoleId(){
        return this.tokenUser.getRoleId();
    }
}
